var mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/jiugu')
var Schema = mongoose.Schema
var postRepliesSchema = new Schema({
	postId:{//帖子号
		type:String,
		required:true
	},
	commentator:{//评论者昵称
		type: String,
		required:true
	},
	content:{//内容
		type: String,
		required:true
	},
	praisePerson:[{//点赞人
		type:String,
		default: '',
		required:false
	}],
	commDate:{// 时间
		type:String,
		required:true
	}
})
module.exports = mongoose.model('postReplie',postRepliesSchema)